
const install = (Vue, vm) => {
	const $util = {
		getFlowStatus(pStatus) {
			let res = {
				text: '等待提交',
				color: 'u-type-info'
			}
			switch (pStatus){
				case 0:
					res = {
						text: '等待提交',
						color: 'u-type-info'
					}
					break;
				case 1:
					res = {
						text: '等待审核',
						color: 'u-type-primary'
					}
					break;
				case 2:
					res = {
						text: '审核通过',
						color: 'u-type-success'
					}
					break;
				case 3:
					res = {
						text: '审核驳回',
						color: 'u-type-error'
					}
					break;
				case 4:
					res = {
						text: '审核撤回',
						color: 'u-type-error'
					}
					break;
				case 5:
					res = {
						text: '审核终止',
						color: 'u-type-info'
					}
					break;
				default:
					break;
			}
			return res
		}
	}
	Vue.prototype.$util = $util
}

export default {
	install
}
